import { z } from 'zod';

export const UPDATE_COLLECTION_FORM_SCHEMA = z.object({
  id: z.string().regex(/^[1-9][0-9]?$/, { message: 'id不合法' }),
  title: z.string().min(1, { message: '标题至少应包含一个字符' }).max(20, { message: '标题不可超过20个字符' }),
});

export type UpdateCollectionForm = z.infer<typeof UPDATE_COLLECTION_FORM_SCHEMA>;
